package com.example.Web.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
//放入 SPring中
@Component
//写入 yaml的自定义对象名，会将同名属性值
//传递到下面去
@ConfigurationProperties("t")
public class A {
    private Integer a;
    private Integer b;

    @Override
    public String toString() {
        return "A{" +
                "a=" + a +
                ", b=" + b +
                '}';
    }

    public Integer getA() {
        return a;
    }

    public void setA(Integer a) {
        this.a = a;
    }

    public Integer getB() {
        return b;
    }

    public void setB(Integer b) {
        this.b = b;
    }
}
